import Layout from '@/layout'

/* 客户经理路由模块 */
const managerRouter = [
    /* 系统首页 */
    {
        path: '/manager',
        name: 'Manager',
        component: Layout,
        redirect: '/manager/index',
        meta: {
            title: '系统首页',
            icon: 'peoples',
            roles: ['CM']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/index'),
            name: '/manager/index',
            meta: {
                title: '系统首页',
                icon: 'home',
            }
        }] 
    },
    /* 金融风控分析 */
    {
        path: '/analysis',
        name: 'Analysis',
        component: Layout,
        redirect: '/analysis/basics',
        meta: {
            title: '金融风控分析',
            icon: 'home',
            roles: ['CM']
        },
        children: [{
            path: 'basics',
            component: () => import('@/views/roles/admin/analysis/basics'),
            name: '/analysis/basics',
            meta: {
                title: '贷款基本面',
            }
        },{
            path: 'badBasics',
            component: () => import('@/views/roles/admin/analysis/badBasics'),
            name: '/analysis/badBasics',
            meta: {
                title: '不良贷款风险',
            }
        },{
            path: 'guarantee',
            component: () => import('@/views/roles/admin/analysis/guarantee'),
            name: '/analysis/guarantee',
            meta: {
                title: '融资担保',
            }
        },{
            path: 'details',
            component: () => import('@/views/roles/admin/analysis/details'),
            name: '/analysis/details',
            meta: {
                title: '风控明细',
            }
        }]
    },
    /* 客户管理 */
    {
        path: '/a_customer',
        name: 'ACustomer',
        component: Layout,
        redirect: '/a_customer/purpose_list',
        meta: {
            title: '客户管理',
            icon: 'customer',
            roles: ['CM']
        },
        children: [{
                path: 'purpose_list',
                name: '/a_customer/purpose_list',
                component: () => import('@/views/roles/admin/customer/purpose'),
                meta: {
                    title: '意向客户',
                }
            },
            {
                path: 'white_list',
                name: '/a_customer/white_list',
                component: () => import('@/views/roles/admin/customer/white'),
                meta: {
                    title: '订阅客户',
                }
            },

            {
                path: 'recommend_list',
                name: '/a_customer/recommend_list',
                component: () => import('@/views/roles/admin/customer/recommend'),
                meta: {
                    title: '推荐客户',
                }
            },
            {
                path: 'black_list',
                name: '/a_customer/black_list',
                component: () => import('@/views/roles/admin/customer/black'),
                meta: {
                    title: '黑名单客户',
                }
            },
        ]
    },
    /* 企业画像 */
    {
        path: '/portray',
        name: 'Portray',
        component: Layout,
        redirect: '/portray/index',
        meta: {
            title: '企业画像',
            icon: 'portrait',
            roles: ['CM']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/portray'),
            name: '/portray/index',
            meta: {
                title: '画像查询',
            }
        }]
    },
    /* 企业评估 */
    {
        path: '/assess',
        name: 'Assess',
        component: Layout,
        redirect: '/assess/index',
        meta: {
            title: '企业评估',
            icon: 'portrait',
            roles: ['CM']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/assess'),
            name: '/assess/index',
            meta: {
                title: '企业评估',
            }
        }]
    },
    /* 风险预警 */
    {
        path: '/credit',
        name: 'Credit',
        component: Layout,
        redirect: '/credit/extend_list',
        meta: {
            title: '风险预警',
            icon: 'credit',
            roles: ['CM'],
        },
        children: [{
            path: 'extend_list',
            component: () => import('@/views/roles/editor/customer/credit'),
            name: '/credit/extend_list',
            meta: {
                title: '风险预警',
            }
        }]
    },
    /* 额度查询 */
    {
        path: '/limit',
        name: 'Limit',
        component: Layout,
        redirect: '/limit/credit_list',
        meta: {
            title: '额度查询',
            icon: 'limit',
            roles: ['CM'],
        },
        children: [{
            path: 'credit_list',
            component: () => import('@/views/roles/editor/customer/limit'),
            name: '/limit/credit_list',
            meta: {
                title: '额度查询',
            }
        }],
    },
    /* 企业评分管理 */
    {
        path: '/s_coreManage',
        name: 'ScoreManage',
        component: Layout,
        redirect: '/s_coreManage/qScore',
        meta: {
            title: '企业评分管理',
            icon: 'customer',
            roles: ['CM'],
        },
        children: [
            {
                path: 'qScore',
                name: '/s_coreManage/qScore',
                component: () => import('@/views/gradManage/scoresQuery/index'),
                meta: {
                    title: '评分查询',
                }
            },
        ]
    },
    
]

export default managerRouter
